#pragma once


class CDownItemInfo
{
public:
	CDownItemInfo()
	{
		m_sIP = _T("");
		m_sPath = _T("");
		m_sFile = _T("");
		m_sHash = _T("");
		m_sFileNo = _T("");

		m_iFileNo = 0;
		m_iFileSize = 0;
		m_iOffset = 0;

	}

	~CDownItemInfo() {}


public:
	void setIP(CString val) {m_sIP = val;}
	CString getIP() {return m_sIP;}
	
	void setPath(CString val) {m_sPath = val;}
	CString getPath() {return m_sPath;}
	
	void setFile(CString val) {m_sFile = val;}
	CString getFile() {return m_sFile;}

	void setHash(CString val) {m_sHash = val;}
	CString getHash() {return m_sHash;}


	void setFileNo(INT64 val) {m_iFileNo = val;}
	
	CString getFileNo() { 
		m_sFileNo.Format("%d" , m_iFileNo); 
		return m_sFileNo;}

	void setFileSize(INT64 val) {m_iFileSize = val;}
	INT64 getFileSize() {return m_iFileSize;}

	void setOffset(INT64 val) {m_iOffset = val;}
	INT64 getOffset() {return m_iOffset;}



protected:
	CString m_sIP;
	CString m_sPath;
	CString m_sFile;
	CString m_sHash;
	CString m_sFileNo;

	INT64 m_iFileNo;
	INT64 m_iFileSize;
	INT64 m_iOffset;

};


